<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page errorPage="true" %>
<%@ page isErrorPage="true" import="java.io.*"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<div id="main-error" class="clearfix">

    <div class="clearfix">
   	 <div class="col1">
    
   		 <img src="img/panic.jpg"
   			 style="max-width: 400px; max-height: 400px">
   	 </div>
   	 <div class="col2">
    
   		 <div id="error_page">
   		 <h1 STYLE="text-align: center"><B><FONT SIZE=7>ERROR ANOMALO</FONT></B></h1>
   			 </br></br>    
   			 <h2 STYLE="text-align: center"><B><FONT SIZE=5>Contacte con su administrador</FONT></B></h2>    
   			 </br>
   			 <p STYLE="text-align: center">
   				 <form id="volverInicio" name="volverInicio" action="ErrorServlet"  method="post">
   					 <input type="submit" id="volver" value="Volver Al Inicio" />
   				 </form>    
   			 </p>   			 
   		 </div>
   	 </div>
   </div>    
    
    
    <div class="clearfix">
   			 
   				 <p>Exception Message:</p>
   				 <p><%=exception.getMessage()%></p>  

   				 <p>StackTrace:</p>
   				 <p>
   					 <%
   							 StringWriter stringWriter = new StringWriter();
   							 PrintWriter printWriter = new PrintWriter(stringWriter);
   							 exception.printStackTrace(printWriter);
   							 out.println(stringWriter);
   							 printWriter.close();
   							 stringWriter.close();
   						 %>
   				 </p>
   			 



    </div>
    
    
</div>
</body>
</html>